#ifndef _FINDAMMO_H
#define _FINDAMMO_H

#include <global.h>
using namespace cv;
using namespace std;

class FindAmmo
{
public:
    FindAmmo();
	vector<Point2f> Points(vector<KeyPoint> keypoints, Point2f bias);
    void ReleaseAll();
    void DetectNothing();
    int getAmmo(Mat frame);

protected:
	vector<KeyPoint> kpts1;
    vector<KeyPoint> kpts2;
    Mat desc1, desc2, img2;
    Ptr<AKAZE> akaze = AKAZE::create ();
    vector<KeyPoint> matched1, matched2, inliers1, inliers2;
    vector< vector<DMatch> > nn_matches;
    vector<DMatch> inlier_matches;
    BFMatcher matcher;
    Rect ROI = Rect(Point(0, 0), Point(640, 480));

private:
};

#endif 